]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Add proper tracking of window movements to focus tracker
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 26 Feb 2021 15:08:20 +0000 (16:08 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 13 Mar 2021 18:28:15 +0000 (18:28 +0000)
commit95ed7c7a06bd8b79da5e74e3f497ebf970449fee
treed4727831ff02a55741f33f26d270c7d7a2b03a8b
parent7b990daee2953b8f97a850eabf76eb01b5202f9a
keyboard: Add proper tracking of window movements to focus tracker

So far the FocusTracker of the OSK can only recognize grab ops on a
window, that is when the user grabs the window using a mouse or the
touchscreen and actively drags it somewhere.

Window can also be moved using keyboard shortcuts, fullscreen buttons or
other ways which don't rely on grabs. Start also supporting those window
movements by listening to the "position-changed" signal on the currently
focused window and emitting the new "window-moved" signal in that case.

Because the OSK sometimes moves windows by itself, we temporarily
disconnect from that new signal while we move the focused window in
_windowSlideAnimationComplete().

This also takes care of resetting this._focusWindowStartY on movements
of the window.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1760>
js/ui/keyboard.js